<?php include("../../data/mysql.class.php")?>
<?php include("../../data/Function.php")?>
<?php
	$Type=$_POST["Type"];

$conn=new Mysql();
	switch($Type){
		case "delete":
		if($conn->query("delete from d_order where id =".$_POST["id"])){
			echo 1;
			}else{
				echo 0;
				}
		break;
		case "checkstate":
			if($conn->query("update  d_order set istate=".$_POST["isstate"]." where id =".$_POST["id"])){
			echo 1;
			}else{
				echo 0;
				}
		break;
		default:
		break;
		}
?>